import axios from "axios";

const requests = axios.create({
    baseURL: 'http://127.0.0.1:7878',
    timeout: 5000
})

requests.interceptors.request.use(config => {
    return config;
})

requests.interceptors.response.use(res => {
    return res.data;
}, error => {
    console.log(error);
})

export default requests;